#----------------------------Imports--------------------------
from shapes import *
world = TurtleWorld()
schweinstieger = Turtle()
schweinstieger.delay = 0.01
#----------------------------definitions----------------------
# def
#------------------------------TEST-------------------------------#

def soccer(t, size = 25):
    rect(t, size*18, size*10)
    move(t, size*9, 0)
    line(t, 0, size*3)
    move(t, 0, size*2)
    arc(t, size*2)
    move(t, 0, size*2)
    line(t, 0, size*3)
    move(t, size*9, size*-2)
    t.lt(180)
    goal(t, size)
    t.lt(180)
    move(t, -size*18, -size*5)
    goal(t, size)
    move(t, 0, size*7)
    arc(t, size, 90, 180)
    move(t, size*18, 0)
    arc(t, size, 90, 270)
    move(t, 0, -size*10)
    arc(t, size, 90)
    move(t, -size*18, 0)
    arc(t, size, 90, 90)
    move(t, size*2, size*5)
    arc(t, size, 180, 90)
    move(t, size*14, 0)
    arc(t, size, 180, 270)
def goal (t, size):
    rect(t, size*2, size*6)
    move(t, 0, size)
    rect(t, size, size*4)
    
    
move(schweinstieger, 200, -200)
soccer(schweinstieger)
wait_for_user()